<?php
require_once('lib/class.validator.php');
require_once('lib/class.publication.php');
require_once('lib/class.session.php');

if ( $session->is_logged_in() && !$session->is_admin() ) {
    $RECORDS_PER_PAGE = $session->setting_records_per_page;
    $TABLE_PREFIX = $session->table_name;
    $WEEK_ORIGIN = strtotime($session->publication->week_origin); //OUR ORIGIN WEEK IS SET AT THE FIRST WEEK OF 2007, BECAUSE 1 - MONDAY, 2 - TUESDAY, ETC.
}

require_once('lib/class.user.php');
require_once('lib/class.allowance.php');
require_once('lib/class.subscription.php');
require_once('lib/class.export-xls.php');
require_once('lib/class.report.php');

require_once('lib/class.controller.php');
?>